<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Icon extends Model
{
    //表名
    protected $table = 'icon';
    public $timestamps = false;

    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $fillable = ['name','icon'];

    //权限表与图标表多对一的关系
    public function auth(){
        return $this->hasMany('App\Models\Auth');
    }
}
